<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Background Properties Exercise</title>
    <style>
        .box {
            background-color: deepskyblue; /* 深蓝色 */
            width: 200px;
            height: 200px;
        }

        .image-background {
            background-image: url('background.jpg'); /* 设置背景图片 */
            width: 200px;
            height: 200px;
        }

        .cover-image {
            background-image: url('../作业/素材/20240914170839.png'); 
            background-size: cover; /* 覆盖整个元素 */
            width: 100%;
            height: 300px;
        }

        .header {
            background-image: url('../作业/素材/20240914170823.png'); 
            background-position: bottom right; /* 定位到右下角 */
            width: 100%;
            height: 100px;
        }

        .pattern {
            background-image: url('../作业/素材/20240914170853.png'); 
            background-repeat: repeat-y; /* 在垂直方向上重复 */
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
    <div class="box"></div>
    <div class="image-background"></div>
    <div class="cover-image"></div>
    <div class="header"></div>
    <div class="pattern"></div>
</body>
</html>